package camid.distribution.protocol;

import java.io.Serializable;
import java.util.Map;
import java.util.TreeMap;

public class MethodResponseMessage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private ResponseStatus status;

	private Endpoint endpoint;
	
	private String objectId;
	
	private Serializable response;
	
	private Map<String,Object> invocationContext;
	
	public MethodResponseMessage() {
		this.invocationContext = new TreeMap<String, Object> ();
	}

	public ResponseStatus getStatus() {
		return status;
	}

	public void setStatus(ResponseStatus status) {
		this.status = status;
	}	

	public Serializable getResponse() {
		return response;
	}

	public void setResponse(Serializable response) {
		this.response = response;
	}

	public Map<String, Object> getInvocationContext() {
		return invocationContext;
	}

	public void setInvocationContext(Map<String, Object> invocationContext) {
		this.invocationContext = invocationContext;
	}

	public String getObjectId() {
		return objectId;
	}

	public void setObjectId(String objectId) {
		this.objectId = objectId;
	}

	public Endpoint getEndpoint() {
		return endpoint;
	}

	public void setEndpoint(Endpoint endpoint) {
		this.endpoint = endpoint;
	}
	
}
